﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:res="clr-namespace:RemoteCommands.Properties"
                    xmlns:tb="http://www.hardcodet.net/taskbar">

    <!-- Globally declared notify icon -->
    <tb:TaskbarIcon x:Key="MyNotifyIcon"
        IconSource="../Resources/RobotIcon.ico"
                    LeftClickCommand="{Binding Path=Commands[ShowHide]}"
                  >

        <!-- Set a simple context menu  -->
        <tb:TaskbarIcon.ContextMenu>
            <ContextMenu>
                <MenuItem Header="{x:Static res:Resources.CheckForCommandsMenuItemText}" 
                          Command="{Binding Path=Commands[Check]}"/>
                <MenuItem Header="{x:Static res:Resources.StartSuspendTimerMenuItemText}" 
                          Command="{Binding Path=Commands[Suspend]}"/>
                <Separator />
                <MenuItem Header="{x:Static res:Resources.ShowHideMenuItemText}" 
                          Command="{Binding Path=Commands[ShowHide]}"/>
                <MenuItem Header="{x:Static res:Resources.ExitMenuItemText}" 
                          Command="{Binding Path=Commands[Close]}"/>
            </ContextMenu>
        </tb:TaskbarIcon.ContextMenu>
        
        <tb:TaskbarIcon.TrayToolTip>
            <Border
                Visibility="{Binding Suspend}"
                  Background="White"
                  BorderBrush="Orange"
                  BorderThickness="2"
                  CornerRadius="4"
                  Opacity="0.8">
                <TextBlock
                    Margin="5"
                    Text="{Binding SuspendTime}"
                    FontSize="20"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    />
            </Border>
        </tb:TaskbarIcon.TrayToolTip>
    </tb:TaskbarIcon>

</ResourceDictionary>